﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MyCadDll.MyObject;
using MyCadDll;
using MyChart;

namespace test
{
    public partial class Form1 : Form
    {
        List<MyText> textList;
        List<MyLine> lineList;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MyCadDll.MyCad cad = new MyCadDll.MyCad();
            cad.StartCad();
            cad.GetSelectSet();
            lineList = cad.m_listMyLine;
            textList = cad.m_listMyText;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MyCadDll.MyCad cad = new MyCadDll.MyCad();
            cad.StartCad();
            cad.GetSelectSet();
            lineList = cad.m_listMyLine;
            textList = cad.m_listMyText;
            
        }

        private void butGrid_Click(object sender, EventArgs e)
        {
            Chart chart = new Chart();
            DataTable dt = chart.ConvertDataTable();
            testGridFrom form = new testGridFrom(dt);
            form.ShowDialog();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Chart chart = new Chart();
            DataTable dt = chart.ConvertDataTable();
            FxpChart fxp= new FxpChart(dt);
           
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Chart chart = new Chart();
            DataTable dt = chart.ConvertDataTable();
            GdChart fxp = new GdChart(dt);
        }
    }
}
